package edu.suda.xsap.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Date;
import java.time.LocalDate;
import java.time.LocalDateTime;

/******************
 * DTO, Data Transfer Object， 数据传输对象
 * 作用：
 * 1- 可以对数据进行裁剪
 * 2- 可以对数据进行格式化或满足前端数据的需求
 * 3- 提高安全性，比如对敏感数据进行脱敏
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class MemberDto implements Serializable {
    private Long id;
    private String name;
    private String sex;
    private String phone;
    private LocalDate birthday;
    private String note;
    private String avatarUrl;
    private Integer isDeleted; // 使用 Integer 代替 tinyint(1) UNSIGNED
    private LocalDateTime createTime;
    private LocalDateTime lastModifyTime;
    private Integer version;


}
